package com.fanqiechaodan.adapter;

/**
 * @author fanqiechaodan
 * @Classname PowerSocketToUSBAdapter1
 * @Description 对象适配器
 */
public class PowerSocketToUSBAdapter1 implements USB{

    private PowerSocket powerSocket;

    public PowerSocketToUSBAdapter1(PowerSocket powerSocket) {
        this.powerSocket = powerSocket;
    }

    /**
     * 充电
     */
    @Override
    public void charge() {
        powerSocket.powerSupply();
        System.out.println("转换为USB充电...");
    }
}
